package 文件IO.流Reader;

import java.io.FileReader;
import java.io.IOException;
import java.io.Reader;

public class Main {
    public static void main(String[] args) {
        try(Reader reader = new FileReader("E:/test.txt")){
            while(true){
                int c = reader.read();
                if(c == -1){
                    break;
                }
                char ch = (char)c;
                System.out.print(ch+" ");
            }
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
